package com.tedu._04mybatis.mapper;

import com.tedu._04mybatis.pojo.Comment;
import com.tedu._04mybatis.pojo.CommentVO1;
import com.tedu._04mybatis.pojo.CommentVO2;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface CommentMapper {

    int insertComment(Comment comment);

    int deleteCommentById(Integer id);

    int updateCommentById(Comment comment);

    CommentVO1 selectCommentVO1ById(Integer id);

    List<CommentVO2> selectCommentVO2ByArticleId(Integer id);

    int dynamicDeleteComment(Integer[] ids);
}
